import request from '@/utils/request'

// 查询用户学习记录列表
export function listLeaningUser(query) {
  return request({
    url: '/examine/leaningUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户学习记录详细
export function getLeaningUser(userId) {
  return request({
    url: '/examine/leaningUser/' + userId,
    method: 'get'
  })
}

// 新增用户学习记录
export function addLeaningUser(data) {
  return request({
    url: '/examine/leaningUser',
    method: 'post',
    data: data
  })
}

// 修改用户学习记录
export function updateLeaningUser(data) {
  return request({
    url: '/examine/leaningUser',
    method: 'put',
    data: data
  })
}

// 删除用户学习记录
export function delLeaningUser(userId) {
  return request({
    url: '/examine/leaningUser/' + userId,
    method: 'delete'
  })
}
// 我的学习记录列表
export function getMyList(data){
  return request({
    url: '/examine/leaningUser/my',
    method: 'get',
    params: data
  })
}
